package com.ruoyi.law_model.knowledge.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 存储文档分段信息对象 document_split
 *
 * @author lihuayong
 * @date 2025-01-10
 */
public class DocumentSplit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自动递增 */
    private Long docSegId;

    /** 关联的知识库ID */
    @Excel(name = "关联的知识库ID")
    private Long klId;

    /** 关联的文档ID */
    @Excel(name = "关联的文档ID")
    private Long docId;

    /** 文档分段内容 */
    @Excel(name = "文档分段内容")
    private String segContent;

    private String documentName;

    private String knowledgeName;

    /** 向量表ID */
    @Excel(name = "向量表ID")
    private String embedId;

    /** 创建时间，默认值为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间，默认值为当前时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间，默认值为当前时间，更新时自动更新 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间，默认值为当前时间，更新时自动更新", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /** 创建人的ID */
    @Excel(name = "创建人的ID")
    private String createdBy;

    /** 更新人的ID */
    @Excel(name = "更新人的ID")
    private String updatedBy;

    public void setDocSegId(Long docSegId)
    {
        this.docSegId = docSegId;
    }

    public Long getDocSegId()
    {
        return docSegId;
    }
    public void setKlId(Long klId)
    {
        this.klId = klId;
    }

    public Long getKlId()
    {
        return klId;
    }
    public void setDocId(Long docId)
    {
        this.docId = docId;
    }

    public Long getDocId()
    {
        return docId;
    }
    public void setSegContent(String segContent)
    {
        this.segContent = segContent;
    }

    public String getSegContent()
    {
        return segContent;
    }
    public void setEmbedId(String embedId)
    {
        this.embedId = embedId;
    }

    public String getEmbedId()
    {
        return embedId;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }

    public String getDocumentName() {
        return documentName;
    }

    public void setDocumentName(String documentName) {
        this.documentName = documentName;
    }

    public String getKnowledgeName() {
        return knowledgeName;
    }

    public void setKnowledgeName(String knowledgeName) {
        this.knowledgeName = knowledgeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("docSegId", getDocSegId())
            .append("klId", getKlId())
            .append("docId", getDocId())
            .append("segContent", getSegContent())
            .append("embedId", getEmbedId())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .toString();
    }
}
